package com.cpf.bean;

public class Nodes {
    private int id;  
    private String nodeId;  
    private String parentId;  
    private String hrefAddress;  
    private String nodeName;
 
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNodeId() {
		return nodeId;
	}
	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getHrefAddress() {
		return hrefAddress;
	}
	public void setHrefAddress(String hrefAddress) {
		this.hrefAddress = hrefAddress;
	}
	public String getNodeName() {
		return nodeName;
	}
	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}
	@Override
	public int hashCode()
	{
		return this.nodeName.hashCode();
	}
	@Override
	public boolean equals(Object o)
	{
		//if(this == o)
			//return true;
		if(o!=null && o instanceof Nodes)
		{
			Nodes node = (Nodes)o;
			if(node.getNodeName().equals(this.nodeName))
				return true;
			else
				return false;
			
		}
		
		return false;
	}

}

